<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/commons/global.jsp"%>
<%@ include file="/commons/tag.jsp"%>
<%@ include file="/commons/js/basejs.jsp"%>
<%@ include file="/commons/js/extjs.jsp"%>
<%@ include file="/commons/css/basecss.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" href="${jsPath }/sweetAlert/sweetalert.css" type="text/css"/>
</head>
<body>
	<div id="tb" style="padding:3px">
		<span>角色名称/编码:</span>
		<input id="itemid" style="line-height:26px;border:1px solid #ccc">
		<span>请选择厂商:</span>
		<input id="cc" name="dept" value="请选择厂商"  style="width:200px;"/> 
		<select id="st" class="easyui-combobox" name="dept" style="width:100px;" editable=false panelHeight=auto>
			<option value="0" >请选择状态</option>
		    <option value="1">启用</option>   
		    <option value="-1">未启用</option>     
		</select> 
		<select id="ty" class="easyui-combobox" name="dept" style="width:100px;" editable=false panelHeight=auto>
			<option value="-1">请选择类型</option>
		    <option value="0">系统平台</option>   
		    <option value="1">厂商平台</option>     
		</select>
		<a href="#" class="easyui-linkbutton" onclick="doSearch()" data-options="iconCls:'icon-search'">搜索</a>
	</div>
	<div id="datagrid_toolbar">
		<a onclick="add(this);" href="javascript:void(0);" class="easyui-linkbutton" data-options="plain:true,iconCls:'icon-add'">添加</a>
		<a onclick="find(this)" href="javascript:void(0);" class="easyui-linkbutton" data-options="plain:true,iconCls:'icon-edit'">编辑</a>
       	<a onclick="removes(this)" href="javascript:void(0);" class="easyui-linkbutton" data-options="plain:true,iconCls:'icon-del'">批量删除</a>
	</div> 
	<table id="dg"></table>
	<div id="win" class="easyui-window" title="新增角色" style="width:500px;height:350px"   
        data-options="iconCls:'icon-save',modal:true" closed="true">   
   		<form id="ff" method="post">
   			<div style="position:absolute; left: 10%;top:15%">
			    <div>   
			        <label for="name"><span style="color:red">*</span> &nbsp;角色名:</label>   
			        <input class="easyui-validatebox" type="text" name="roleName" data-options="required:true"/>   
			    </div><br>   
			    <div>   
			        <label for="code">角色编码:</label>   
			        <input class="easyui-validatebox" type="text" name="roleNo" />   
			    </div><br>
			    <div>   
			        <label for="status">请选择类型:</label>
			        <select id="stype" class="easyui-combobox" name="type" style="width:100px;" editable=false panelHeight=auto>
					    <option value="0">系统平台</option>   
					    <option value="1">厂商平台</option>     
					</select>
			    </div><br>
			    <div>   
			        <label for="code">请选择厂商:</label>   
			        <input id="sfac" name="facId" style="width:200px;" disabled="disabled"/>      
			    </div><br>
			    <div>   
			        <label for="status">角色状态:</label>
			        <select id="stt" class="easyui-combobox" name="status" style="width:100px;" editable=false panelHeight=auto>
					    <option value="1">启用</option>   
					    <option value="-1">未启用</option>     
					</select>
			    </div><br>
			    <div>   
			        <label for="remark">备注:</label>
			        <input class="easyui-textbox" type="text" data-options="multiline:true" name="remark" style="width:250px"/>
			    </div>
			    <br>
			    <a id="sub" href="#" class="easyui-linkbutton" data-options="iconCls:'icon-ok'" onclick="submit(this)">提&nbsp;交</a>&nbsp;&nbsp;
			    <a id="reset" href="#" class="easyui-linkbutton" data-options="iconCls:'icon-clear'" onclick="closeWin(this)">取&nbsp;消</a> 
		    </div>    
		</form> 
	</div>
	<div id="win2" class="easyui-window" title="修改信息" style="width:500px;height:350px"   
        data-options="iconCls:'icon-save',modal:true" closed="true">   
   		<form id="update" method="post">
   			<div style="position:absolute; left: 10%;top:15%">
   				<div>   
			        <input class="easyui-validatebox" type="text" name="id" data-options="required:true" hidden="true"/>   
			    </div>
			    <div>   
			        <label for="name"><span style="color:red">*</span> &nbsp;角色名:</label>   
			        <input class="easyui-validatebox" type="text" name="roleName" data-options="required:true"/>   
			    </div><br>   
			    <div>   
			        <label for="code">角色编码:</label>   
			        <input class="easyui-validatebox" type="text" name="roleNo" />   
			    </div><br>
			    <div>   
			        <label for="status">请选择类型:</label>
			        <select id="stype2" class="easyui-combobox" name="type" style="width:100px;" editable=false panelHeight=auto disabled="disabled">
					    <option value="0">系统平台</option>   
					    <option value="1">厂商平台</option>     
					</select>
			    </div><br>
			    <div>   
			        <label for="code">请选择厂商:</label>   
			        <input id="sfac2" name="facName" style="width:200px;" disabled="disabled"/>      
			    </div><br>
			    <div>   
			        <label for="status">角色状态:</label>
			        <select id="stt" class="easyui-combobox" name="status" style="width:100px;" editable=false panelHeight=auto>
					    <option value="1">启用</option>   
					    <option value="-1">未启用</option>     
					</select>&nbsp;&nbsp;
					<label for="status">删除状态:</label>
			        <select id="isd" class="easyui-combobox" name="isDeleted" style="width:100px;" editable=false panelHeight=auto>
					    <option value="1">未删除</option>   
					    <option value="-1">已删除</option>     
					</select>
			    </div><br>
			    <div>   
			        <label for="status">备注:</label>
			        <input class="easyui-textbox" type="text" data-options="multiline:true" name="remark" style="width:250px"/>
			    </div>
			    <br>
			    <a id="sub2" href="javascript:void(0)" class="easyui-linkbutton" data-options="iconCls:'icon-ok'" onclick="update(this)">保&nbsp;存</a>&nbsp;&nbsp;
			    <a id="reset" href="javascript:void(0)" class="easyui-linkbutton" data-options="iconCls:'icon-clear'"  onclick="closeWin(this)">取&nbsp;消</a> 
		    </div>    
		</form> 
	</div>
	<div id="win3" class="easyui-dialog" title="菜单分配" style="width:400px;height:300px"   
        data-options="iconCls:'icon-save',resizable:true,modal:true" buttons="#btns" closed="true">
        <div id="btns">
	    	 <a href="javascript:void(0)" class="easyui-linkbutton" data-options="iconCls:'icon-ok'" onclick="menuChange(this)">保&nbsp;存</a>&nbsp;&nbsp;
	    	 <a href="javascript:void(0)" class="easyui-linkbutton" data-options="iconCls:'icon-clear'"  onclick="closeWin(this)">取&nbsp;消</a>
	    </div> 
	    <div>
	    	<ul id="tree" ></ul>   
	    </div>    
	</div> 
	<script type="text/javascript" src="${jsPath }/business/role.js"
		charset="utf-8"></script>
	<script type="text/javascript" 
		charset="utf-8">
		$(function() {
			loading("${path}");
		})
	</script>	
</body> 
</html>